// prefetcher.h
#ifndef PREFETCHER_H
#define PREFETCHER_H

// --- 新增：用于配置的结构体 ---
struct config {
    __u32 target_pid;
};

// 每个线程的访问历史
struct access_history {
    unsigned long last_addr;
    long last_stride;
    int confidence;
};

// 通过 Ring Buffer 发送给用户态的模式信息
struct pattern_info {
    __u32 pid;
    __u32 tid;
    unsigned long start_addr;
    long stride;
    unsigned int size;
};

#endif // PREFETCHER_H